package com.naiterui.ehp.bs.search.repository.mysql;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.search.entity.SearchDrStandardDiagnosis;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ISearchDrStandardDiagnosisRepository extends BaseJpaRepository<SearchDrStandardDiagnosis, Long> {

    @Query(value = "select name from dr_standard_diagnosis", nativeQuery = true)
    List<String> getAllNames();
}